package com.example.thread;

public class TestRunnable implements Runnable{
    @Override
    public void run() {
        for (int i = 0;i <20; i++)
        {
            System.out.println("我在看代码"+i);
        }
    }

    public static void main(String[] args) {

        TestRunnable testRunnable = new TestRunnable();
        new Thread(testRunnable).start();


        for (int i = 0;i <20; i++)
        {
            System.out.println("我在学习代码"+i);
        }
    }
}
